<button (click)="tab()">去首页</button>

<a [routerLink]="['/']">去首页</a>
